package com.ruoyi.netty;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

/**
 * @author hlf
 * @createTime 2025/2/12 13:52
 * @description
 */
@Component
public class HelloJob {

    @XxlJob("myXxlJobHandler")
    public void execute() throws Exception {
        // 任务执行逻辑
        System.out.println("MyXxlJobHandler is running.");
        XxlJobHelper.log("MyXxlJobHandler is running.");
    }


}